import { transformI18n, $t } from "@/plugins/i18n";
import { computed } from 'vue'

const { VITE_HIDE_HOME } = import.meta.env;
const Layout = () => import("@/layout/index.vue");

//@ts-ignore
export default {
    path: "/",
    name: "Layout",
    component: Layout,
    redirect: "/home",
    meta: {
        icon: "eq:House",
        title: computed(() => transformI18n("menu.home")),
        rank: 0,
        keepAlive: true
    },
    children: [
        {
            path: "/home",
            name: "Home",
            component: () => import("@/views/home/index.vue"),
            meta: {
                title: computed(() => transformI18n("menu.home")),
                showLink: VITE_HIDE_HOME === "true" ? false : true,
                keepAlive: true
            }
        }
    ]
} as RouteConfigsTable;